home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / winsock / winftp.zip / WNFTPSRC.ZIP / WS_GLOB.H < prev    next >
C/C++ Source or Header  |  1994-01-07  |  5KB  |  158 lines

  1. /*
  2.   MODULE: WS_GLOB.H  (global header file)
  3. */
  4.  
  5. #include <stdio.h>
  6. #include <string.h>
  7. #include <stdlib.h>
  8.  
  9. #ifdef _BORLANDC_
  10. #include <dir.h>
  11. #else
  12. #include <direct.h>
  13. #endif
  14.  
  15. #include "winsock.h"
  16.  
  17. #ifndef WS_GLOBHEADER
  18.  
  19. #define WS_GLOBHEADER
  20.  
  21. #ifndef MAXHOSTNAMELEN
  22. #define MAXHOSTNAMELEN 64
  23. #endif
  24.  
  25. #ifndef MAXPACKET
  26. #define MAXPACKET 4096
  27. #endif
  28.  
  29. // some miscellaneous definitions that we use
  30.  
  31. #define SCRLWND      7531
  32.  
  33. #define FTP_PRELIM   1
  34. #define FTP_COMPLETE 2
  35. #define FTP_CONTINUE 3
  36. #define FTP_RETRY    4
  37. #define FTP_ERROR    5
  38. #define FTP_ABORT    6
  39.  
  40. #ifndef IS_GLOBAL_C
  41.  
  42. extern BOOL bAutoStart;
  43. extern BOOL bAborted;
  44. extern BOOL bRetain;
  45. extern BOOL bDblClkVu;
  46. extern BOOL bAccount;
  47. extern BOOL bFireWall;
  48. extern BOOL bLocalHistory;
  49. extern BOOL bRemoteHistory;
  50. extern BOOL bCancelXfer;
  51. extern BOOL bOpInProgress;
  52.  
  53. extern WORD wSortType;
  54.  
  55. extern u_int uiTimeOut;              // 30 second timeout??
  56.  
  57. extern char szMsgBuf[MAXPACKET];     // main i/o buffer
  58. extern u_char szSendPkt[MAXPACKET];  // output transfer buffer
  59. extern char szString[5120];           // temp string area
  60. extern char szMailAddress[128];
  61. extern char szViewer[128];
  62. extern char szDlgPrompt[80];         // used by input dialog as prompt
  63. extern char szDlgEdit[80];           // used by input dialog for output
  64. extern char szTempDir[80];           // Directory for temporary files
  65. extern char szConfig[80];            // used by host dialog for userid
  66. extern char szUserID[80];            // used by host dialog for userid
  67. extern char szPassWord[80];          // used by host dialog for password
  68. extern char szRemoteHost[80];        // remote host name/addr to connect to
  69. extern char szFireWallHost[80];
  70. extern char szFireWallUserID[30];
  71. extern char szFireWallUserPass[30];
  72. extern char szAppName[20];           // this programs name "winftp"
  73. extern char szIniFile[20];           // INI file name
  74. extern char szTmpDirFileName[20];
  75. extern char szTmpViewFileName[20];
  76. extern char szLFileType[20];
  77. extern char szRFileType[20];
  78. extern char szAccountPass[30];
  79. extern char szDefaultHdr[40];
  80. extern char szCurrentDir[_MAX_PATH]; // Holds Current Dir File name for LongDir
  81. extern char szTmpDirFile[_MAX_PATH];
  82. extern char szTmpViewFile[_MAX_PATH];
  83. extern char szInitDir[_MAX_PATH];
  84. extern char szScript[_MAX_PATH];
  85. extern char szLogFile[_MAX_PATH];
  86. extern char szXferWnd[10];
  87. extern char szMsgWnd[15];
  88.  
  89. extern char szFormName[10];          // ** not used in this version
  90. extern char szModeName[10];          // ** not used in this version
  91. extern char szStructName[10];        // ** not used in this version
  92. extern char szTypeName[10];          // ** not used in this version
  93.  
  94. extern LPSTR lpDebugWindow;
  95.  
  96. extern char fType;                   // file transfer type
  97. extern char cType;                   // current transfer type
  98. extern char cForm;                   // format (not used???)
  99. extern char cMode;                   // mode (not used???)
  100.  
  101. extern HCURSOR hStdCursor;           // cursors
  102. extern HCURSOR hWaitCursor;          // cursors
  103.  
  104. extern HINSTANCE hInst;              // handle of instance
  105. extern HWND hWndMain;                // handle of main window
  106. extern HWND hWndDbg;                 // handle of Debug window
  107.  
  108. // child window handles
  109. extern HWND hLbxLDir,hLbxLFiles,hLbxRDir,hLbxRFiles, hLbxLDirLst, hLbxRDirLst;
  110. extern HWND hTxtLDir,hTxtRHost,hTxtRDir,hTxtLBytes,hTxtRBytes;
  111. extern HWND hRBascii,hRBbinary,hRBl8,hScroll;
  112.  
  113. extern BOOL bConnected;              // connected flag
  114. extern BOOL bCmdInProgress;          // command in progress flag
  115. extern BOOL bSendPort;               // use PORT commands (must be 1!!!)
  116.  
  117. extern int nWndx;                    // the x axis multiplier
  118. extern int nWndy;                    // the y axis multiplier
  119. extern int nAcctType;
  120. extern int nLogFlag;
  121.  
  122. // options
  123. extern int bBell;          // completion bell (not used in this version)
  124. extern int bCRstrip;       // crlf conversion (not used in this version)
  125. extern int bDoGlob;        // globbing (not used in this version)
  126. extern int bHash;          // show hash (not used in this version)
  127. extern int bInteractive;   // prompting (not used in this version)
  128. extern int bMCase;         // case conversion (not used in this version)
  129. extern int bRecvUniq;      // unique name on receive (not used in this ver)
  130. extern int bStorUniq;      // unique name on transmit (not used in this ver)
  131. extern int bVerbose;       // maximum verbosity (turns extra debug msgs on)
  132. extern int nHostType; 
  133. extern int iCode;          // return code from last command(..)
  134. extern int nCfgNum;
  135. extern int nViewNum;
  136.  
  137. extern int ptrhGMem;
  138. extern int nTimerID;
  139.  
  140. extern SOCKET ctrl_socket;           // control channel socket
  141. extern SOCKET data_socket;           // data channel socket
  142. extern SOCKET listen_socket;         // data listen socket
  143.  
  144. extern struct sockaddr_in saDestAddr;     
  145. extern struct sockaddr_in saFromAddr;     
  146. extern struct sockaddr_in saSockAddr;         // endpoint address
  147. extern struct sockaddr_in saSockAddr1;        // used when bSendPort==0
  148. extern struct sockaddr_in saCtrlAddr;
  149.  
  150. extern WORD sVPos;                   // scroll pos for debug window
  151.  
  152. extern WSADATA WSAData;              // windows sockets dll information
  153.  
  154. #endif /* if IS_GLOBAL_C */
  155.  
  156. #endif /* if WS_GLOBHEADER */
  157.  
  158.